echo "Removing old elf"
rm main.elf
echo "Building object files for links"
msp430-gcc -mmcu=msp430g2231 -o uart.o uart.c
echo "Building and linking"
#msp430-gcc -mmcu=msp430g2231 -L/home/atreyu/Projects/msp430/2231exp2/ ./uart.o -o main.elf main.c
msp430-gcc -mmcu=msp430g2231 -o uart.o uart.c -o main.elf main.c
echo "Complete"
